package com.anywhere.freightman.system.service;

import com.anywhere.freightman.common.IBaseService;
import com.anywhere.freightman.common.entity.FileEntity;
import com.anywhere.freightman.system.model.FileModel;
import org.springframework.web.multipart.MultipartFile;

public interface IFileService extends IBaseService<FileModel> {
    FileModel upload(MultipartFile file);

    void delete(Long id);

    void deleteFile(String path);

    void deleteFile(String group, String path);

    FileEntity downloadFile(Long id);

    byte[] downloadFile(String groupName, String path);
}
